body {
  @apply text-body-1;
  background-color: var(--surface-neutral-secondary-rest);
  color: var(--text-content-darkest);
}

.item-purple.dark body {
  background-color: #1b1c23;
}

/* page navgation bar */
.page-navbar {
  @apply sticky top-0 z-10 w-full h-14 px-5 py-2;
  border-bottom: 1px solid var(--stroke-divider-subtle);
  // background-image: radial-gradient(var(--white-90) 1px, var(--white) 1px);
  background-size: 4px 4px;
  backdrop-filter: saturate(50%) blur(4px);
  -webkit-backdrop-filter: saturate(50%) blur(4px);

  .el-page-header__left {
    .el-page-header__back,
    .el-divider--vertical {
      @apply hidden;
    }
  }
}

.dark .page-navbar {
  // background-image: radial-gradient(var(--black-90) 1px, var(--white) 1px);
}

.page-footer {
  @apply px-12 py-4 w-full;
  border-top: 1px solid var(--stroke-divider-subtle);
  // background-image: radial-gradient(var(--white-90) 1px, var(--white) 1px);
  background-size: 4px 4px;
  backdrop-filter: saturate(50%) blur(4px);
  -webkit-backdrop-filter: saturate(50%) blur(4px);

  .el-page-header__left {
    .el-page-header__back,
    .el-divider--vertical {
      @apply hidden;
    }
  }
}

.dark .page-footer {
  // background-image: radial-gradient(var(--black-90) 1px, var(--white) 1px);
}

.item-purple.dark .page-navbar {
  background-color: rgba(27, 28, 35, 1);
  border-bottom: 1px solid #333847;
}

.item-purple.dark .page-body {
  background-color: #1b1c23 !important;
}

.item-purple.dark .page-footer {
  background-color: rgba(27, 28, 35, 1);
  border-top: 1px solid #333847;
}

.item-purple.dark .unis-sidebar {
  background-color: rgba(33, 35, 43, 1);
}

/* progress */
.el-progress__text {
  text-align: right;
}

.el-progress-bar__outer {
  overflow: visible;
  background-color: var(--surface-filled-disabled);
}

.el-progress-bar__innerText {
  margin: 0;
  min-width: 40px;
}

/* popper */
.el-select-dropdown__item {
  @apply flex items-center px-2 py-1 h-auto min-h-8 rounded text-body-2;
  color: var(--text-content-darkest);

  & + .el-select-dropdown__item {
    @apply mt-1;
  }

  &:hover {
    background-color: var(--surface-neutral-primary-hover);
  }

  &.selected {
    background-color: var(--surface-neutral-primary-pressed);
    color: var(--text-content-darkest);
    font-weight: 400;
  }
}

.el-popper {
  @apply rounded-lg;

  &.is-light {
    background-color: var(--white);
    border-color: var(--stroke-border-neutral-rest);

    /* border: 0; */
    .el-popper__arrow::before {
      background-color: var(--white);
      /* border-color: transparent; */
    }
  }

  &.el-select__popper {
    background: var(--white);
    border: 0;
    box-shadow: var(--elevation-3);

    .el-select-dropdown {
      @apply px-4 py-2.5;
    }

    .el-popper__arrow {
      @apply hidden;
    }
  }

  .el-picker-panel {
    color: var(--text-content-dark);
    background: var(--white);
    border-radius: 12px;
  }
}

/* old */
.search-form {
  &-content {
    width: 100%;
    display: flex;

    > * {
      width: 100%;
      margin-right: 8px;
    }
  }

  .el-input {
    @apply h-[36px];

    input {
      @apply placeholder:text-gray-500;
    }
  }

  .el-date-editor {
    @apply h-[36px] w-full;
  }

  .el-button {
    width: 36px;
    height: 36px;
    flex-shrink: 0;

    path {
      @apply fill-gray-300 dark:fill-white-100;
    }
  }
}

/* 表格编辑/新增表单场景样式 */
.table-from {
  @apply h-full;

  /* @apply table-button; */
  .el-select {
    @apply w-full;
  }

  .el-form--label-top {
    .el-form-item {
      @apply mb-6;

      .el-form-item__label {
        @apply mb-1 text-sm;
      }
    }
  }
}

/* Custom scroll bar style */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: var(--surface-neutral-secondary-rest);
}

::-webkit-scrollbar-track {
  border-radius: 4px;
  background-color: var(--surface-neutral-secondary-rest);
}

::-webkit-scrollbar-corner,
::-webkit-scrollbar {
  background-color: var(--surface-neutral-secondary-rest);
}

::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: var(--surface-neutral-tertiary-rest);
}
